package com.zpp.wedding_admin.service.impl;

import com.zpp.wedding_admin.entity.CameraWork;
import com.zpp.wedding_admin.mapper.CameraWorkMapper;
import com.zpp.wedding_admin.service.ICameraWorkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 朱盼盼
 * @since 2022-12-29
 */
@Service
public class CameraWorkServiceImpl extends ServiceImpl<CameraWorkMapper, CameraWork> implements ICameraWorkService {

    @Autowired
    private CameraWorkMapper workMapper;

    @Override
    public List<CameraWork> getAllList() {
        return workMapper.getAllList();
    }

    @Override
    public List<CameraWork> getById(String id) {
        return workMapper.getById(id);
    }

    @Override
    public boolean pass(String id, String reason) {
        return workMapper.pass(id, reason);
    }

    @Override
    public boolean noPass(String id, String reason) {
        return workMapper.noPass(id, reason);
    }

    @Override
    public boolean goodAdd(String id) {
        return workMapper.goodAdd(id);
    }

    @Override
    public boolean goodSubtract(String id) {
        return workMapper.goodSubtract(id);
    }

    @Override
    public boolean collectAdd(String id) {
        return workMapper.collectAdd(id);
    }

    @Override
    public boolean collectSubtract(String id) {
        return workMapper.collectSubtract(id);
    }

    @Override
    public List<CameraWork> getWorkPageVo(Integer id, Integer[] labelIDs, Integer[] locationIDs) {
        return workMapper.getWorkPageVo(id, labelIDs, locationIDs);
    }

    @Override
    public CameraWork getByWorkId(Integer id) {
        return workMapper.getByWorkId(id);
    }

    @Override
    public List<CameraWork> getAllListByUserId(Integer id) {
        return workMapper.getAllListByUserId(id);
    }
}
